@import "~scss/variables";

.sw-cms-el-config-image-slider {
    .sw-cms-el-config-image-slider__setting-option {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 0 32px;
    }

    &__setting-auto-slide-switch > .mt-switch,
    &__setting-auto-slide-delay > .mt-number-field {
        margin-bottom: 0;
    }

    .sw-cms-el-config-image-slider__setting-display-mode {
        grid-column: 1 / -1;
    }

    .sw-cms-el-config-image-slider__settings-links {
        .sw-cms-el-config-image-slider__settings-link {
            margin-top: 8px;

            .sw-cms-el-config-image-slider__settings-link-prefix {
                display: flex;
                align-self: end;
                height: 72px;
                width: 50px;
                padding-bottom: 1px;
                border-radius: 2px;
                object-fit: cover;
            }
        }
    }

    &__settings-link-container {
        margin: 0 0 var(--scale-size-22) 0;
    }

    &__settings-is-decorative {
        margin: 0;
    }

    .sw-cms-el-config-image-slider__settings-link-input {
        margin-bottom: 0;
    }

    &__setting-auto-slide {
        &.sw-field--switch .sw-field__label label {
            margin-right: 0;
        }
    }

    &__settings-link-tab {
        margin-top: 0;
    }
}
